int g[2];

int __attribute__((noinline)) test(unsigned int *p) {
  g[0] = 1;
  *p = 0;
  return g[0];
}

int main() {
  return test((unsigned int *)&g[0]);
}
